class @FriendsIsAcceptedListingModel extends Backbone.Model
    defaults:
        UserId:''
        Friends:[]
        Size:10
        Page:1
        Direction:0
        Column:'Email'
        Filter:
            Email:''
            Login:''
    url:->
        url = SiteMap.Friends.FriendsIsAcceptedListing
        url = url + "?page=" + @attributes.Page
        url = url + "&size=" + @attributes.Size
        url = url + "&column=" + @attributes.Column
        url = url + "&direction=" + @attributes.Direction
        url = url + "&Filter.Email=" + @attributes.Filter.Email
        url = url + "&Filter.Login=" + @attributes.Filter.Login
        return url

    parse:(response)->
        item = {}
        item.UserId = response.UserId
        item.Size = response.Size
        item.Page = response.Page
        item.Direction = response.Direction
        item.Column = response.Column
        item.Filter = {}
        item.Filter.Email = ''
        item.Filter.Login = ''
        if response.Filter.Email?
            item.Filter.Email = response.Filter.Email 
        if response.Filter.Login?
            item.Filter.Login = response.Filter.Login
        item.Friends = response.Friends
        return item